import fetch from "@/api/fetch"
import constants from "@/api/constants"

const baseURL = constants.baseURL + "/search";

const api = {
    // 商品
    product: {
        // 总数
        count(params) {
            return fetch.post(baseURL + "/product/count", params);
        },
        // 规格参数
        baseAttrList(params) {
            return fetch.post(baseURL + "/product/baseAttrList", params);
        },
        // 分页列表
        listPage(params) {
            return fetch.post(baseURL + "/product/listPage", params);
        }
    }
}

export default api;